"use strict";

var Sequelize = require("sequelize");
var sequelize = new Sequelize("main", "", "", {
    dialect: "sqlite",
    logging: null,
    storage: "./lg071.db"
});

var User = sequelize.define("user", {
    name: {
        allowNull: false,
        type: Sequelize.STRING,
        unique: true
    },
    mobile: {
        defaultValue: "",
        type: Sequelize.STRING
    },
    wechat: {
        defaultValue: "",
        type: Sequelize.STRING
    },
    corporation: {
        defaultValue: "",
        type: Sequelize.STRING
    }
}, {
    timestamps: false
});

module.exports = sequelize;